﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using Microsoft.Phone.Tasks;

namespace TheDrinksApp.Screen
{
    public partial class InfoScreen : UserControl
    {
        public InfoScreen()
        {
            InitializeComponent();
        }

        private void btnEmailUs_Click(object sender, RoutedEventArgs e)
        {
            EmailComposeTask emailComposeTask = new EmailComposeTask();

            emailComposeTask.Subject = "The Drinks App";
            emailComposeTask.Body = "";
            emailComposeTask.To = "drinks@thedrinksapp.com";
            emailComposeTask.Cc = "";
            emailComposeTask.Bcc = "";

            emailComposeTask.Show();
        }

        private void btnWebsite_Click(object sender, RoutedEventArgs e)
        {
            WebBrowserTask wbt = new WebBrowserTask();
            wbt.Uri = new Uri( "http://www.thedrinksapp.com");
            wbt.Show();
        }
    }
}
